.size(@size) {
  width: @size;
  height: @size;
}

.rows-ellipsis(@line: 2) when (@line > 1) {
  overflow: hidden;
  display: -webkit-box;
  text-overflow: ellipsis;
  -webkit-line-clamp: @line;
  -webkit-box-orient: vertical;
  white-space: normal;
}

.rows-ellipsis(@line) when (@line = 1) {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
